{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}

{% block ng_controller %}ImageFormController as ctrl{% endblock %}
{% block form_attrs %}enctype="multipart/form-data"{% endblock %}


{% block modal-body-right %}
  <h3>{% trans "Description:" %}</h3>
  <p>
     {% if HORIZON_IMAGES_ALLOW_UPLOAD %}
          {% trans "Images can be provided via an HTTP/HTTPS URL or be uploaded from your local file system." %}
     {% else %}
          {% trans "Currently only images available via an HTTP/HTTPS URL are supported. The image location must be accessible to the Image Service." %}
     {% endif %}
  </p>
  <p>
     <strong>{% trans "Please note: " %}</strong>
     {% if HORIZON_IMAGES_ALLOW_UPLOAD %}
         {% trans "If you select an image via an HTTP/HTTPS URL, the Image Location field MUST be a valid and direct URL to the image binary; it must also be accessible to the Image Service. URLs that redirect or serve error pages will result in unusable images." %}
     {% else %}
         {% trans "The Image Location field MUST be a valid and direct URL to the image binary. URLs that redirect or serve error pages will result in unusable images." %}
     {% endif %}
  </p>
{% endblock %}
